<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>结构伪类</title>
</head>
<body>
    <ul>
        <li>项目1</li>
        <li class="second">项目2</li>
        <li id="third">项目3</li>
        <li>项目4</li>
        <li>项目5</li>
    </ul>
    <p>p1</p>
    <h1>h1</h1>
    <p>p2</p2>
    <h2>h2</h2>
    <p>p3</p>
    <h3>h3</h3>
    <p>p4</p>
    <a href="./个人主页.html">谢亚文作业</a>
</body>
<style>
    ul{
        list-style-type: square;
    }
    li{
        color: red;
        
    }
    .second{
        background-color: pink;
    }
    #third{
        background-color: yellow;
        
    }
    p:nth-last-of-type(2n){
        font-size: 4em;
        color: red;
        
    }
</style>

</html>